package com.training.java.core.collections;

import java.util.LinkedList;
import java.util.List;

public class GenericListDemo {

	public static void main(String[] args) {

		Car Honda = new Car("Honda", "Accord", 1998);
		Car Toyota = new Car("Toyota", "Corrolla", 2012);
		Car Chevy = new Car("Chevy", "Volt", 2013);
		
		List<Car> cars = new LinkedList<>();
		
		Dealer dealer = new Dealer();
		
		dealer.loadCars(cars);
		
		cars.add(Honda);
		cars.add(Toyota);
		cars.add(Chevy);
		
		for (Car car : cars) {
			
			System.out.println("Make: " + car.getMake());
			
		}
		
		
		
	}

	private static void loadCars(List<Car> cars) {
		// TODO Auto-generated method stub
		
	}

}
